package com.akkainaction.cluster.wordcount.router.group;

import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Props;
import akka.actor.UntypedActor;

public class WorkActor extends UntypedActor {

    @Override
    public void onReceive(Object msg) throws Exception {
        System.out.println(getSelf() + "收到消息:[" + msg + "]");
    }

    public static void main(String[] args) {
        ActorSystem system = ActorSystem.create("sys");
        ActorRef workActor = system.actorOf(Props.create(WorkActor.class), "workActor");
    }
}
